package com.qk.management.aop.anno;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Cacheable {

    String redisKey() default "";

    String redisKeyPrefix() default "";

    long redisKeyExpireTime() default 0;

    TimeUnit redisKeyExpireTimeUnit() default TimeUnit.SECONDS;
}
